package entidades;

public class Tarjeta implements Comparable {

    private int id;
    private boolean usada;
    public Tarjeta(int id) {
        this.id = id;
        this.usada = false;
    }

    @Override
    public int compareTo(Object o) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public int getId() {
        return id;
    }

    public boolean isUsada() {
        return usada;
    }

    public void setUsada(boolean usada) {
        this.usada = usada;
    }

    public String getEstado() {
        String res;
        if (this.usada){
            res = "(usada)";
        } else{
            res ="";
        }
        return res;
    }
}